package webfinal.dao;

import webfinal.common.utils.MyDbUtil;
import webfinal.entity.Student;

import java.util.List;

public class StudentDao {
    // TODO: 2022/12/5  别忘了分页处理，下一个视频的事！基础的难点
    public  List<Student> selectAllStudents(){
        String sql = " SELECT id, name, stuNo, sex, reg_time 'regTime' FROM student ";
        List<Student> students = MyDbUtil.executeQuery(Student.class, sql);
        return students;
    }
}
